<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/2
 * Time: 14:45
 */
namespace console\controllers ;
use backend\gen\CurdGenerator;
use yii\console\Controller;

class GenController extends Controller
{
    public $model ;
    public $view ;
    public $className ;
    public function options($actionID)
    {
        return ['model','view'];
    }

    public function actionCurd($className){
        $this->className = $className ;
        CurdGenerator::build($this);
    }
}